$NG.AllReady(function (page, { useDataIndexChange, useUpdateRow, useUpdateRows }) {
    console.log('Data ready event triggered');
    //获取容器并检查
    var mstform = $NG.getCmpApi("p_form_Subcontracting_Plan");
    var dgrid = $NG.getCmp('p_form_Subcontracting_Plan_d');
    if (mstform) {
        console.log('mstform is reayd');
    } else {
        console.log('mstform 获取错误');
    }

    if (dgrid) {
        console.log('dgrid is reayd');
    } else {
        console.log('dgrid 获取错误');
    }

    // 表体当前选中行数据更新---->单个字段更新数据以及编辑事件
    useDataIndexChange(({ args, table }) => {
        var gridTab = $NG.getCmpApi('p_form_Subcontracting_Plan_d');
        var row = args[0];// 获取当前变更的行数据，args[0] 是传入的行对象
        row.u_plan_hs_amt = row.u_plan_qty * row.u_jhhsdj;// 字段计算逻辑
        gridTab.updateRow(row);// 更新当前行数据
    }, 'u_plan_qty');//监听的变化的字段
});

